﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Chinook.Core;


namespace Chinook.Core.DomainModel
{
    public class Employee : Person
    {
        public virtual DateTime HireDate { get; set; }
        public virtual Employee ReportsTo { get; set; }

        protected override void CheckForBrokenRules()
        {
            if (String.IsNullOrEmpty(FirstName))
            base.AddBrokenRule("You must supply a first name.");
            if (String.IsNullOrEmpty(LastName))
            base.AddBrokenRule("You must supply a last name.");
        }
    
    }
}
